Question 1
- Congestion: Maximum number of edges in the original graph mapped to an edge in the embedding graph.
- Dilation: Maximum number of edges in the embedding graph that any edge in the original network mapped onto.
- Gustafson’s Law: Gustafson's Law suggests that the speedup can be linearly proportional to the number of processors used, provided that the size of the problem being solved is increased in proportion to the number of processors.
- Superlinear speedup: a scenario where the speedup achieved by a parallel algorithm exceeds the theoretical maximum speedup predicted by Amdahl's Law.
- Work optimal: Total work done by the parallel algorithm is the same as the serial complexity of the problem.
Question 2
Part 1
Amdahl's Law: 4/5=S+PS+P/5, and S+P=1.
Solving the system of equation, we get S=3/4,P=1/4, Accelerator is active for 1/4/5=5% of the time in the machine with an accelerator.
Part 2
Speed up: S+P/16S+P
We use Amdahl's Law because the problems are the same.
Question 3
- f4(n)
- f2(n)
- f5(n)
- f1(n)
- f3(n)
Question 4
- False, a lower bound on g is not sufficient.
- False, that's typically not true for all n, especially when n is small.
- True.
Question 5
Part 1
- (0000)2→PE(0,0)
- (0001)2→PE(0,1)
- (0010)2→PE(0,2)
- (0011)2→PE(0,3)
- (0100)2→PE(1,0)
- (0101)2→PE(1,1)
- (0110)2→PE(1,2)
- (0111)2→PE(1,3)
- (1000)2→PE(2,0)
- (1001)2→PE(2,1)
- (1010)2→PE(2,2)
- (1011)2→PE(2,3)
- (1100)2→PE(3,0)
- (1101)2→PE(3,1)
- (1110)2→PE(3,2)
- (1111)2→PE(3,3)
Part 2
- (0,1)→(PE(0,0),PE(0,1))
- (0,2)→(PE(0,0),PE(0,1),PE(0,2))
- (0,4)→(PE(0,0),PE(1,0))
- (0,8)→(PE(0,0),PE(1,0),PE(2,0))
Part 3
- Expansion: 1 (number of nodes doesn't change)
- Dilation: ⌈2k⌉ (we either traverse the first half of the bits down the rows or traverse the last half of the bits across columns, so we only care about half of k to traverse)
- Congestion: ⌈2k⌉ (same as dilation when we have one edge being traversed for at most half of k times)